public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.addPerson(new Man("张三"));
        objectStructure.addPerson(new Woman("小红"));

        objectStructure.display(new Success());

        objectStructure.display(new Fail());

        objectStructure.display(new Wait());
    }
}
